<template>
    <view>
        <!-- parse <template is="meetJoinTpl" :data="forms,id,isLoad,timeMark,meet"/> -->
        <block name="meetJoinTpl">
            <view v-if="isLoad === null" class="margin-top load notexist text-l load-project"></view>
            <view v-if="isLoad === false" class="margin-top load loading text-l load-project"></view>

            <view v-if="isLoad" class="main padding-project">
                <view class="article-box">
                    <view class="form-box card-project shadow-project">
                        <view class="form-group">
                            <view class="title text-cut">{{ meet.MEET_TITLE }}</view>
                        </view>
                        <view class="form-group" @tap="url" data-type="back">
                            <view class="title text-cut" style="padding-right: 0">
                                <text class="icon-calendar margin-right-xxs"></text>
                                {{ meet.dayDesc }}
                                <text class="tag mid bg-orange light round margin-right">更改时段</text>
                            </view>
                        </view>
                    </view>

                    <!-- form content begin -->
                    <view class="form-box card-project shadow-project margin-top">
                        <view class="form-group">
                            <view class="line-desc">
                                请您填写资料，带
                                <text class="text-red text-bold">*</text>
                                号为必填项
                            </view>
                        </view>
                        <cmpt-form-show
                            :isConfirm="true"
                            id="form-show"
                            :forms="meet.myForms"
                            :fields="meet.MEET_FORM_SET"
                            @submit="bindSubmitCmpt($event, { tagId: 'form-show' })"
                        />
                    </view>
                    <!-- form content end -->
                </view>

                <button @tap="bindCheckTap" class="btn-base btn-project" style="margin-bottom: 100rpx">提交</button>
            </view>
        </block>
    </view>
</template>

<script>
import cmptFormShow from '@/cmpts/public/form/form_show/form_show_cmpt';
let behavior = require('../../../../behavior/meet_join_bh.js');
let PassortBiz = require('../../../../biz/passport_biz.js');
let skin = require('../../skin/skin.js');
export default {
    components: {
        cmptFormShow
    },
    data() {
        return {
            isLoad: '',

            meet: {
                MEET_TITLE: '',
                myForms: '',
                MEET_FORM_SET: ''
            }
        };
    },
    mixins: [behavior],
    onReady: function () {
        PassortBiz.initPage({
            skin,
            that: this
        });
    },
    methods: {
        url() {
            console.log('占位：函数 url 未声明');
        },

        bindSubmitCmpt(e, _dataset) {
            /* ---处理dataset begin--- */
            this.handleDataset(e, _dataset);
            /* ---处理dataset end--- */
            console.log('占位：函数 bindSubmitCmpt 未声明');
        },

        bindCheckTap() {
            console.log('占位：函数 bindCheckTap 未声明');
        }
    }
};
</script>
<style>
@import './meet_join.css';
@import 'undefined';
</style>
